module.exports = {
  apps: [{
    name: 'querysystem-backend',
    script: 'app.js',
    env: {
      NODE_ENV: 'production',
      PORT: 3800
    },
    watch: false,
    instances: 1,
    exec_mode: 'fork',
    log_date_format: 'YYYY-MM-DD HH:mm:ss',
    error_file: '../logs/error.log',
    out_file: '../logs/out.log',
    merge_logs: true,
    max_memory_restart: '1G'
  }]
}; 